package com.woniuxy.sddfp.sms.controller;

import com.woniuxy.sddfp.common.result.Result;
import com.woniuxy.sddfp.sms.service.ISmsService;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.ResolvableType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yellow Doctor
 * @date 2025-06-24
 * @desc 蜗牛创想：www.woniuxy.com
 */
@RestController
@RequestMapping("sms")
public class SmsController {

    @Autowired
    private ISmsService smsService;

    /**
     * 获取验证码
     */
    @GetMapping("/{phone}")
    public Result sendCode(@PathVariable("phone")String phone) {
        return Result.ok(smsService.sendCode(phone));
    }


    // 学习


}
